%YW_EXPANDSIM 比较试验测量数据和仿真数据 反射率
%@since: 2022-06-21 11:32:48
%@update: 输入更新内容
%@type:script
%    *参数说明*
%       @param [参数名] 参数描述
%       @return [返回名] 返回描述
%    *使用说明*
%       [返回名] = YW_EXPANDSIM([参数名]) 使用描述文件
%
% ———————————————— POWERED BY YINWEI ————————————————
close all;
clear;
FileLocation = '.';
% simulated = readCST('..\多带S11FD.txt');
simulated = readCST('..\多带S11FD原参数.txt');

for Group = 1:2

    Ref = [FileLocation, '\', 'ref', num2str(Group), '-SampleSpectrum.csv'];
    Sam = [FileLocation, '\', 'sam', num2str(Group), '-SampleSpectrum.csv'];
    [Fre, Reflectance] = FC_Experiment_Show(Ref, Sam, 0, [0.1 3.5]);
    YW_Plot_Fast({Fre, 10 * log10(abs(Reflectance)), simulated(:, 1), 20 * log10(abs(simulated(:, 2)))}, {"*-r", ':g'}, ["Experiment", 'Simulation'], ["Frequency (THz)", 'Reflection (dB)']);
    xlim([0.15 3])
end
